import request from '@/api/request'
// 查询患者筛查
export function allergicAsthmaInfo(data) {
  return request({
    url: '/emrweb/allergicAsthma/queryInfo',
    method: 'post',
    data,
  })
}

export function allergicAsthmaSave(data) {
  return request({
    url: '/emrweb/allergicAsthma/save',
    method: 'post',
    data,
  })
}

// 查询哮喘，控制水平评估，支气管哮喘急性发作严重评估表
export function queryPage(data) {
  return request({
    url: '/emrweb/asthmaControl/queryPage',
    method: 'post',
    data,
  })
}

// 查询哮喘，控制水平评估，支气管哮喘急性发作严重评估 详情查询
export function queryInfo(data) {
  return request({
    url: '/emrweb/asthmaControl/queryInfo',
    method: 'post',
    data,
  })
}

// 查询哮喘，控制水平评估，支气管哮喘急性发作严重评估 详情查询
export function save(data) {
  return request({
    url: '/emrweb/asthmaControl/save',
    method: 'post',
    data,
  })
}

// 新增或修改院内初筛筛查
export function saveOutsideAsthmaAndAllergicForm(data) {
  return request({
    url: '/emrweb/asthmaControl/saveScreening',
    method: 'post',
    data,
  })
}

// 筛查表用到的查询风险筛查信息的接口
export function seachRiskInfo(params) {
  return request({
    url: '/emrweb/asthmaControl/queryRiskType',
    method: 'get',
    params,
  })
}
